package com.zjj.jvm.example;

/**
 * @author zhanglei.zjj
 * @description 用来演示一个简单数学计算程序，在jvm中执行的整体流程，以此为切入点研究jvm类加载机制
 * @date 2023/3/4 12:19
 */
public class Sum {
    public static int sumResult = 0;
    public static void main(String[] args) {
        Sum sum = new Sum();
        sumResult = sum.doSum();
        System.out.println("sumResult: " + sumResult);
    }

    private int doSum() {
        int a = 4;
        int b = 2;
        int c = (a + b) * 10;
        return c;
    }
}
